package cn.icare.cms.model.vo.rest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

@ApiModel(value = "OrderItemVo", description = "订单单个商品信息")
public class OrderItemVo {

    /**
     * 商品购买数量
     */
    @ApiModelProperty(value = "商品购买数量")
    private Integer num;

    /**
     * 商品标题
     */
    @ApiModelProperty(value = "商品标题")
    private String title;

    /**
     * 商品单价
     */
    @ApiModelProperty(value = "商品单价")
    private BigDecimal price;

    /**
     * 商品总金额
     */
    @ApiModelProperty(value = "商品总金额")
    private BigDecimal total;

    /**
     * 商品图片地址
     */
    @ApiModelProperty(value = "商品图片地址")
    private String picurl;


    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public OrderItemVo(Integer num, String title, BigDecimal price, BigDecimal total, String picurl) {
        this.num = num;
        this.title = title;
        this.price = price;
        this.total = total;
        this.picurl = picurl;
    }
}
